<?php
class film_player extends CWidget
{
	public $dataProviderE;
	public $model;
    public function init()
    {
        $this->registerCoreScript();
        parent::init();
    }
    public function run()
    {
    	if(isset($this->dataProviderE)){
            $this->render('film_player',array('model'=>$this->model,'dataProviderE'=>$this->dataProviderE));
    	}
    }
	
    protected function registerCoreScript()
    {
        $cs      =    Yii::app()->clientScript;
        $skin    =    dirname(__FILE__).DIRECTORY_SEPARATOR.'assets';
        $path    =    Yii::app()->getAssetManager()->publish($skin);
//        $p_css   =    $path.'/skin/blue.monday/jplayer.blue.monday.css';
        $p_js    =    $path.'/mediaelement.js';
        $cs->registerCoreScript('jquery');
//        $cs->registerCssFile($p_css);
        $cs->registerScriptFile($p_js);

    }
}
?>